﻿using System;
using System.Collections.Generic;
using RoleAuthRes = BotonJXC.Entity.RoleAuthRes;

namespace BotonJXC.DAO
{
    public class RoleAuthResDAO : NHibernateDao<RoleAuthRes, int>
    {
        public void DeleteByRoleId(int roleId)
        {
            string hql = "delete from RoleAuthRes where Role.RoleId=?";
            ExecuteUpdate(hql, roleId);
        }
    }
}
